<template>
	<view class="content">
		<view class="bg-img flex align-center userBG">
					<view class="flex-item" style="margin: auto;flex-direction: column;" @click="toLogin" v-if="!isLogin">
						<view class="flex-item flex-item-V">
							<view class="cu-avatar xl round" style="background-image: url('https://utime-uniapp-oss.oss-cn-shenzhen.aliyuncs.com/static/user/avatar.png'); margin: auto;">
							</view>
						</view>
						<view class="flex-item flex-item-V">
							<text>你还没登录呢</text>
						</view>
					</view>
					<view class="flex-item" style="margin: auto; flex-direction: column;" v-if="isLogin">
						<view class="flex-item flex-item-V">
							<text>欢迎来到祖安</text>
						</view>
					</view>
				</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello',
				isLogin: false,
				
			}
		},
		onLoad() {

		},
		onReady() {
			
		},
		methods: {
			toLogin: function() {
				uni.navigateTo({
					url: '/pages/login/login'
				})
			},
			checkLogin: function() {
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 40rpx;
	}
	
	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 100rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}
	
	.title {
		font-size: 28rpx;
		color: $u-content-color;
	}
	
	.link-demo {
		margin-top: 80rpx;
	}
</style>
